﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using STKMIS.Model;
using STKMIS.DAL;

namespace STKMIS.BLL
{
    public class Product
    {
        public Product() { }

        public static DataTable GetProductList(string keyWord)
        {
            try
            {
                List<SqlDBParameter> param = new List<SqlDBParameter>();

                param.Add(new SqlDBParameter("@KeyWord", DbType.String, keyWord));

                DataTable dt = SqlDBServer.GetDataTableByStoredProc("proc_GetProductList", param, SqlDBServer.SqlConnStringModelDb);

                return dt;
            }
            catch
            {
                return null;
            }
        }
    }
}
